home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
Mac shareware
/
Education
/
RLaB
/
rlib
/
disp.r
< prev
next >
Wrap
Text File
|
1994-09-21
|
587b
|
28 lines
//-------------------------------------------------------------------//
// Syntax: disp ( S )
// Description:
// The disp function does two things,
// 1) If the argument is a matrix, it prints the matrix without the
// variable label to the standard output.
// 2) If the argument is a string, it prints the string to the
// standard output.
//-------------------------------------------------------------------//
disp = function ( S )
{
if (class (S) == "string")
{
fprintf ("stderr", "%s\n", S[1]);
else if (class (S) == "num") {
S + 0 ?
}}
return 1
};